package com.atguigu.a_record;

public class Demo {
    public static void main(String[] args) {
        //创建Record对象
        Triangle triangle = new Triangle(3, 4, 5);
        System.out.println("triangle = " + triangle);

        //使用类中的方法
        System.out.println("triangle.area() = " + triangle.area());

        System.out.println("triangle.perimeter() = " + triangle.perimeter());

        //相当于 事物描述类中的  getXxx()
        System.out.println("triangle.a() = " + triangle.a());
        System.out.println("triangle.b() = " + triangle.b());
        System.out.println("triangle.c() = " + triangle.c());



    }
}
